package com.company.cloud.mall.modules.bus.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.company.cloud.mall.modules.base.entity.CartInfo;
import com.company.cloud.mall.modules.base.service.CartInfoService;
import com.company.cloud.mall.modules.bus.service.ShopMQService;

@Service
public class ShopMQServiceImpl implements ShopMQService{

	
//	@Autowired
//	private FavoriteInfoService favoriteInfoService;
//	
	
	@Autowired
	private CartInfoService cartInfoService;


	@Override
	public void delObj(String type, String id) {
//		if(ShopObjType.Product_ObjType.equals(type)) {
//			cartInfoService.remove(new QueryWrapper<CartInfo>()
//					.eq("product_no", id));
//		}
	}


	@Override
	public void upDownObj(String type, String id,String state) {
//		if(ShopObjType.Product_ObjType.equals(type)) {
//			cartInfoService.update(new UpdateWrapper<CartInfo>()
//					.set("product_is_updown", state)
//					.eq("product_no", id)
//					);
//		}
	}
	
	
	
	
	
	
}
